package com.dongdongshop.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
@Getter
public enum ResultEnum {
    USERNAME_PASSWORD_NOT_NULL(1, "用户名密码不能为空"),
    USERNAME_PASSWORD_ERROR(2, "用户名密码错误"),
    LOGIN_SUCCESS(3, "登录成功"),
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),
    UNAUTHORIZED(401, "TOKEN无效"),
    SELLER_LOGIN_STATUS_ERROR(5,"账号状态异常"),
    DATA_TOO_LONG(4,"首字母过长");
    private Integer code;
    private String message;

}
